const express = require('express');
const static = express.static('./static');//设置静态文件的根目录
// const bodyParser = require('body-parser');
const app = express();

app.use(static);
// app.use(bodyParser.urlencoded({
//     extended: true
// }));
app.use('/', require('./router/index'));


app.listen(8080, function () {
    console.log('服务启动http://127.0.0.1:8080');
})